Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion psalm.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
<directory name="src" />
<ignoreFiles>
<directory name="vendor" />
<file name="src/Util/ClockMock.php" />
</ignoreFiles>
</projectFiles>

Expand Down
2 changes: 1 addition & 1 deletion tests/BreadcrumbTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

use PHPUnit\Framework\TestCase;
use Sentry\Breadcrumb;
use Sentry\Util\ClockMock;
use Sentry\Tests\TestUtil\ClockMock;

final class BreadcrumbTest extends TestCase
{
Expand Down
2 changes: 1 addition & 1 deletion tests/Metrics/MetricsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
use Sentry\Options;
use Sentry\SentrySdk;
use Sentry\State\Hub;
use Sentry\Tests\TestUtil\ClockMock;
use Sentry\Tracing\SpanContext;
use Sentry\Tracing\TransactionContext;
use Sentry\Util\ClockMock;

use function Sentry\metrics;

Expand Down
2 changes: 1 addition & 1 deletion tests/Serializer/PayloadSerializerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
use Sentry\Serializer\PayloadSerializer;
use Sentry\Severity;
use Sentry\Stacktrace;
use Sentry\Tests\TestUtil\ClockMock;
use Sentry\Tracing\DynamicSamplingContext;
use Sentry\Tracing\Span;
use Sentry\Tracing\SpanId;
Expand All @@ -36,7 +37,6 @@
use Sentry\Tracing\TransactionMetadata;
use Sentry\Unit;
use Sentry\UserDataBag;
use Sentry\Util\ClockMock;
use Sentry\Util\SentryUid;

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Util/ClockMock.php → tests/TestUtil/ClockMock.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
* THE SOFTWARE.
*/

namespace Sentry\Util;
namespace Sentry\Tests\TestUtil;

/**
* @author Nicolas Grekas <p@tchwork.com>
Expand Down
2 changes: 1 addition & 1 deletion tests/Tracing/SpanTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
namespace Sentry\Tests\Tracing;

use PHPUnit\Framework\TestCase;
use Sentry\Tests\TestUtil\ClockMock;
use Sentry\Tracing\Span;
use Sentry\Tracing\SpanContext;
use Sentry\Tracing\SpanId;
use Sentry\Tracing\TraceId;
use Sentry\Tracing\Transaction;
use Sentry\Tracing\TransactionContext;
use Sentry\Util\ClockMock;

/**
* @group time-sensitive
Expand Down
3 changes: 1 addition & 2 deletions tests/Tracing/TransactionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,10 @@
use Sentry\Options;
use Sentry\State\Hub;
use Sentry\State\HubInterface;
use Sentry\Tracing\Span;
use Sentry\Tests\TestUtil\ClockMock;
use Sentry\Tracing\SpanContext;
use Sentry\Tracing\Transaction;
use Sentry\Tracing\TransactionContext;
use Sentry\Util\ClockMock;

/**
* @group time-sensitive
Expand Down
2 changes: 1 addition & 1 deletion tests/Transport/HttpTransportTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
use Sentry\Options;
use Sentry\Profiling\Profile;
use Sentry\Serializer\PayloadSerializerInterface;
use Sentry\Tests\TestUtil\ClockMock;
use Sentry\Transport\HttpTransport;
use Sentry\Transport\ResultStatus;
use Sentry\Util\ClockMock;

final class HttpTransportTest extends TestCase
{
Expand Down
2 changes: 1 addition & 1 deletion tests/Transport/RateLimiterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
use PHPUnit\Framework\TestCase;
use Sentry\EventType;
use Sentry\HttpClient\Response;
use Sentry\Tests\TestUtil\ClockMock;
use Sentry\Transport\RateLimiter;
use Sentry\Util\ClockMock;

/**
* @group time-sensitive
Expand Down
2 changes: 1 addition & 1 deletion tests/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
use Sentry\Breadcrumb;
use Sentry\Event;
use Sentry\Metrics\Metrics;
use Sentry\Tests\TestUtil\ClockMock;
use Sentry\Tracing\Span;
use Sentry\Transport\RateLimiter;
use Sentry\Util\ClockMock;

require_once __DIR__ . '/../vendor/autoload.php';

Expand Down