Lines Matching refs:age

33         $age = new Age($x, $y);
35 self::assertSame(0, $age->ageDays());
36 self::assertSame(0, $age->ageYears());
37 self::assertSame('0', $age->ageYearsString());
38 self::assertSame('0 days', (string) $age);
45 $age = new Age($x, $y);
47 self::assertSame(0, $age->ageDays());
48 self::assertSame(0, $age->ageYears());
49 self::assertSame('0', $age->ageYearsString());
50 self::assertSame('0', (string) $age);
57 $age = new Age($x, $y);
59 self::assertSame(0, $age->ageDays());
60 self::assertSame(0, $age->ageYears());
61 self::assertSame('0', $age->ageYearsString());
62 self::assertSame('0', (string) $age);
69 $age = new Age($x, $y);
71 self::assertSame(-37, $age->ageDays());
72 self::assertSame(-1, $age->ageYears());
73 self::assertSame(view('icons/warning'), $age->ageYearsString());
74 self::assertSame(view('icons/warning'), (string) $age);
81 $age = new Age($x, $y);
83 self::assertSame(-1, $age->ageDays());
84 self::assertSame(-1, $age->ageYears());
85 self::assertSame('', $age->ageYearsString());
86 self::assertSame('', (string) $age);
93 $age = new Age($x, $y);
95 self::assertSame(-1, $age->ageDays());
96 self::assertSame(-1, $age->ageYears());
97 self::assertSame('', $age->ageYearsString());
98 self::assertSame('', (string) $age);
105 $age = new Age($x, $y);
107 self::assertSame(-6, $age->ageDays());
108 self::assertSame(0, $age->ageYears());
109 self::assertSame('0', $age->ageYearsString());
110 self::assertSame('0', (string) $age);
117 $age = new Age($x, $y);
119 self::assertSame(6, $age->ageDays());
120 self::assertSame(0, $age->ageYears());
121 self::assertSame('0', $age->ageYearsString());
122 self::assertSame('0', (string) $age);
129 $age = new Age($x, $y);
131 self::assertSame(14, $age->ageDays());
132 self::assertSame(0, $age->ageYears());
133 self::assertSame('0', $age->ageYearsString());
134 self::assertSame('14 days', (string) $age);
141 $age = new Age($x, $y);
143 self::assertSame(75, $age->ageDays());
144 self::assertSame(0, $age->ageYears());
145 self::assertSame('0', $age->ageYearsString());
146 self::assertSame('2 months', (string) $age);
153 $age = new Age($x, $y);
155 self::assertSame(2631, $age->ageDays());
156 self::assertSame(7, $age->ageYears());
157 self::assertSame('7', $age->ageYearsString());
158 self::assertSame('7 years', (string) $age);