File tree Expand file tree Collapse file tree 3 files changed +1
-28
lines changed
src/AntiMattr/MongoDB/Migrations/Configuration
tests/AntiMattr/Tests/MongoDB/Migrations/Configuration Expand file tree Collapse file tree 3 files changed +1
-28
lines changed Original file line number Diff line number Diff line change @@ -22,8 +22,6 @@ class Timestamp
22
22
private $ t ;
23
23
24
24
/**
25
- * __construct.
26
- *
27
25
* @param mixed $t
28
26
*/
29
27
public function __construct ($ t )
@@ -32,22 +30,8 @@ public function __construct($t)
32
30
}
33
31
34
32
/**
35
- * __invoke.
36
- *
37
- * @param mixed $t
38
- *
39
- * @return int
40
- */
41
- public function __invoke ($ t ): int
42
- {
43
- return (new static ($ t ))->getTimestamp ();
44
- }
45
-
46
- /**
47
- * getTimestamp.
48
- *
49
33
* Normalise based on the different options for backward/forward
50
- * compatibility
34
+ * compatibility.
51
35
*
52
36
* @return int Time in seconds since 1970
53
37
*/
@@ -94,8 +78,6 @@ public function getTimestamp(): int
94
78
}
95
79
96
80
/**
97
- * __toString.
98
- *
99
81
* @return string
100
82
*/
101
83
public function __toString (): string
Original file line number Diff line number Diff line change @@ -271,8 +271,6 @@ public function testValidate()
271
271
}
272
272
273
273
/**
274
- * testDuplicateInGetMigratedTimestampThrowsException.
275
- *
276
274
* @expectedException \DomainException
277
275
* @expectedExceptionMessage Unexpected duplicate version records in the database
278
276
*/
@@ -340,7 +338,6 @@ public function testGetMigratedTimestamp()
340
338
$ this ->assertTrue (is_numeric ($ this ->configuration ->getMigratedTimestamp ('1 ' )));
341
339
}
342
340
343
-
344
341
private function prepareValidConfiguration ()
345
342
{
346
343
$ directory = dirname (__DIR__ ) . '/Resources/Migrations/ ' ;
Original file line number Diff line number Diff line change 8
8
class TimestampTest extends AntiMattrTestCase
9
9
{
10
10
/**
11
- * testTimestamp.
12
- *
13
11
* @dataProvider provideTimestamps
14
12
*/
15
13
public function testTimestamp ($ ts , $ expected )
@@ -59,8 +57,6 @@ public function provideTimestamps(): array
59
57
}
60
58
61
59
/**
62
- * testWillThrowAnExceptionForUnknownClass.
63
- *
64
60
* @expectedException \DomainException
65
61
*/
66
62
public function testWillThrowAnExceptionForUnknownClass ()
@@ -69,8 +65,6 @@ public function testWillThrowAnExceptionForUnknownClass()
69
65
}
70
66
71
67
/**
72
- * testWillThrowAnExceptionForNull.
73
- *
74
68
* @expectedException \DomainException
75
69
*/
76
70
public function testWillThrowAnExceptionForNull ()
You can’t perform that action at this time.
0 commit comments